package com.dao;

import com.mypg.MyPage;
import com.mypg.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    List<User> selectAllUser();
    List<User> selectUserByPage(MyPage page);
    User selectUserByUser_id(User user);
    User selectUserByUser_name(User user);
    int selectUser_count();

    void insertUser(User user);
    void insertUserByUser_id(User user);
    void insertUserByUser_name(User user);

    void updateUserByUser_id(User user);
    void updateUserByUser_name(User user);
    void updateUser_imgByUser_name(@Param("user_name")String user_name,@Param("user_img")String user_img);

    void deleteUserByUser_id(User user);
    void deleteUserByUser_name(User user);
}
